package commandPattern;

import java.util.Map;

/**
 * 订单命令类，属于具体命令类
 */
public class OrderCommand implements Command{

    // 接收者
//    private SeniorChef receiver;

    // 接收者操作数据类
//    private Order order;

//    public OrderCommand(SeniorChef receiver, Order order) {
//        this.receiver = receiver;
//        this.order = order;
//    }

    @Override
    public void execute( Order order) {
        /*System.out.println(order.getDingTable() + "桌订单做：");
        Map<String, Integer> foodDir = order.getFoodDir();
        for (String key : foodDir.keySet()) {
            receiver.makeFood(key, foodDir.get(key));
        }
        System.out.println(order.getDingTable() + "桌的饭准备完毕！");*/
    }
}
